
public class string14 {

	public static void main(String[] args) throws Exception 
	{
		byte[] byteStr = new byte[30];
		System.in.read(byteStr);
		String str = new String(byteStr);
		for(int i = str.length() - 1; i >= 0; i--)
			System.out.print(str.charAt(i));
	}
}
